﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="UserControl_Login" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="ViewLogIn" runat="server">
                <div>
                    <div class="label">
                        Tên đăng nhập:<br />
                        <asp:TextBox ID="txtTenDangNhap" runat="server" CssClass="select_class" Text=""></asp:TextBox></div>
                    <div class="label">
                        Mật khẩu:
                        <br />
                        <asp:TextBox ID="txtMatKhau" runat="server" CssClass="select_class" Text="" TextMode="Password"></asp:TextBox></div>
                    <div style="text-align: right; padding: 5px 10px 0 0;">
                        <asp:Button ID="btnSumit" runat="server" CssClass="login_button_link" Text="Đăng nhập"
                            OnClick="btnSumit_Click" Style="height: 26px" EnableViewState="False" UseSubmitBehavior="False" /><br />
                    </div>
                    <div class="hyperlink_register">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/ForgotPassword.aspx">Quên mật khẩu</asp:HyperLink> | 
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Register.aspx">Đăng ký</asp:HyperLink></div>
                </div>
            </asp:View>
            <asp:View ID="ViewLogOut" runat="server">
                <div class="name">
                Chào: 
                    <asp:HyperLink ID="hplUser" runat="server">user</asp:HyperLink>
                </div>
                <div style="text-align: right; padding: 5px 10px 0 0;">
                    <asp:Button ID="btnLogOut" runat="server" CssClass="login_button_link" Text="Đăng xuất"
                        Style="height: 26px" EnableViewState="False" UseSubmitBehavior="False" OnClick="btnLogOut_Click" /><br />
                </div>
            </asp:View>
        </asp:MultiView>
    </ContentTemplate>
</asp:UpdatePanel>
